package com.nycreativity.elecreativity.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.nycreativity.elecreativity.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.util.ObjectUtils

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
class GoodsType : BaseEntity() {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    var id: Long? = null
    /**
     * 商品类型描述
     */
    var typeDesc: String? = null


    override fun toString(): String {
        return "GoodsType{" +
        "id=" + id +
        ", typeDesc=" + typeDesc +
        ", ${super.toString()}}"
    }

    fun isEmpty(): Boolean{
        return ObjectUtils.isEmpty(id) && ObjectUtils.isEmpty(typeDesc)
    }
}
